package dk.fuddi.conversion;


import org.apache.commons.lang.StringEscapeUtils;

/**
 * User: jen
 * Date: May 17, 2007
 * Time: 3:56:52 PM
 */
public class JavaUtils implements DeEncodeInterface {

	private String name = "JAVA";

	public String encode(String java) {
		System.out.println("JavaUtils.encode");
		return StringEscapeUtils.escapeJava(java);
	}

	public String decode(String java) {
		System.out.println("JavaUtils.decode");
		return StringEscapeUtils.unescapeJava(java);
	}

	public String toString() {
		return name;
	}
}
